/*
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.isaiah.jackson;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * Created by haijun on 2017/7/2.
 */
public class StudentVo {
    private NameVo name;
    private Integer age;
    private SexEnum sex;
    private Calendar birthday;
    private List<CourseVo> courses;
    private Boolean isLogin;
    private Double height;
    private Double weight;

    public static class CourseVo{
        private String courseName;
        private Double score;

        public CourseVo() {
        }

        public CourseVo(String courseName, Double score) {
            this.courseName = courseName;
            this.score = score;
        }

        public String getCourseName() {
            return courseName;
        }

        public void setCourseName(String courseName) {
            this.courseName = courseName;
        }

        public Double getScore() {
            return score;
        }

        public void setScore(Double score) {
            this.score = score;
        }

        @java.lang.Override
        public java.lang.String toString() {
            return "CourseVo{" +
                    "courseName='" + courseName + '\'' +
                    ", score=" + score +
                    '}';
        }
    }
    public static enum SexEnum{
        MAN(1, "男"), WOMAN(2, "女");

        private int key;
        private String value;

        private SexEnum(int key, String value) {
            this.key = key;
            this.value = value;
        }

        public int getKey() {
            return key;
        }

        public void setKey(int key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
    public static class NameVo{
        private String firstName;
        private String lastName;

        public NameVo() {
        }

        public NameVo(String firstName, String lastName) {
            this.firstName = firstName;
            this.lastName = lastName;
        }

        public String getFirstName() {
            return firstName;
        }

        public void setFirstName(String firstName) {
            this.firstName = firstName;
        }

        public String getLastName() {
            return lastName;
        }

        public void setLastName(String lastName) {
            this.lastName = lastName;
        }

        @java.lang.Override
        public java.lang.String toString() {
            return "NameVo{" +
                    "firstName='" + firstName + '\'' +
                    ", lastName='" + lastName + '\'' +
                    '}';
        }
    }

    public NameVo getName() {
        return name;
    }

    public void setName(NameVo name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }

    public Calendar getBirthday() {
        return birthday;
    }

    public void setBirthday(Calendar birthday) {
        this.birthday = birthday;
    }

    public List<CourseVo> getCourses() {
        return courses;
    }

    public void setCourses(List<CourseVo> courses) {
        this.courses = courses;
    }

    public Boolean getLogin() {
        return isLogin;
    }

    public void setLogin(Boolean login) {
        isLogin = login;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    @java.lang.Override
    public java.lang.String toString() {
        return "StudentVo{" +
                "name=" + name +
                ", age=" + age +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", courses=" + courses +
                ", isLogin=" + isLogin +
                ", height=" + height +
                ", weight=" + weight +
                '}';
    }
}
